package com.example.moduletwo.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.example.baselibrary.activity.BaseNewActivity;
import com.example.baselibrary.bean.PublicViewHolder;
import com.example.moduletwo.R;
import com.example.moduletwo.fragment.ModuleTwoMVPFragment;

/**
 *
 * 普通的Activity 用于展示MVPFragment
 * Created by sun.li on 2018/6/6.
 *
 * @author sun.li
 */

public class ModuleTwoMVPFragmentActivity extends BaseNewActivity {
    @Override
    protected int initLayoutRes() {
        return R.layout.activity_mvp_fragment;
    }

    @Override
    protected PublicViewHolder initViewHolderObject() {
        return null;
    }

    @Override
    protected void baseOnClick(int viewId) {

    }

    @Override
    protected void initView(@Nullable Bundle bundle) {
        super.initView(bundle);
        getSupportFragmentManager().beginTransaction().replace(R.id.content, new ModuleTwoMVPFragment())
                .commit();
    }
}
